<?php
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
		'Login',
);
?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableAjaxValidation'=>true,
	'clientOptions'=>array(
			'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array('class'=>'form-signin'),
)); ?>

	<label> 
		<span class="block input-icon input-icon-right"> 
			<?php echo $form->textField($model,'email', array('class'=>'form-control', 'placeholder'=>'Email address')); ?>
			<i class="icon-user"></i>
		</span>
	</label> 
	<label> 
		<span class="block input-icon input-icon-right">
			<?php echo $form->passwordField($model,'password', array('class'=>'form-control', 'placeholder'=>'Password')); ?>
			<i class="icon-lock"></i>
		</span>
	</label>
	
	<div class="space"></div>
	<div class="clearfix">
		<label class="inline"> <?php echo $form->checkBox($model,'rememberMe'); ?>
			<span class="lbl"> Remember Me</span>
		</label>
		<?php echo $form->error($model,'password', array('class'=>'alert alert-error', 'style'=>'margin-bottom: 0px')); ?> <br>
		<?php echo CHtml::submitButton('Sign in', array('class'=>'width-35 btn btn-small btn-primary')); ?>
	</div>
	
	<div class="space-4"></div>
<?php $this->endWidget(); ?>
